<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""
      onkeydown="if(event.key === 'Enter')return false;">

    <div class="panel panel-default panel-intro">
        {:build_heading()}

        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade active in" id="one">
                    <div class="widget-body no-padding">
                        <div id="toolbar" class="toolbar">
                            {:build_toolbar('refresh,add,edit,del')}
                            <div class="dropdown btn-group {:$auth->check('classes/category/multi')?'':'hide'}">
                                <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled"
                                   data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                                <ul class="dropdown-menu text-left" role="menu">
                                    <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;"
                                           data-params="status=1"><i class="fa fa-eye"></i> 设为显示</a></li>
                                    <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;"
                                           data-params="status=0"><i class="fa fa-eye-slash"></i> 设为隐藏</a></li>
                                </ul>
                            </div>
                        </div>
                        <table id="table" class="table table-striped table-bordered table-hover"
                               data-operate-edit="{:$auth->check('classes/category/edit')}"
                               data-operate-del="{:$auth->check('classes/category/del')}"
                               width="100%">
                        </table>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<script id="schoolTpl" type="text/html">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-inline" data-toggle="cxselect" data-selects="school">
                <select class="form-control school" name="school_id" data-url="common/schools"></select>
            </div>
        </div>
    </div>
</script>